<template>
  <div>
    <el-menu
        :default-active="path"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        style = 'width: 200px;min-height: calc(100vh - 50px)'
        router
    >
      <el-sub-menu index="1">
        <template #title>系统管理</template>
        <el-menu-item index="/user">用户管理</el-menu-item>
      </el-sub-menu>
      <el-menu-item index="/data">
        <template #title>数据管理</template>
      </el-menu-item>
      <el-menu-item index="/serviceData">
        <template #title>业务管理</template>
      </el-menu-item>
    </el-menu>

  </div>
</template>

<script>
export default {
  name: "aside",
  data() {
    return {
      path: this.$route.path   //设置默认高亮
    }
  },
}

</script>

<style scoped>

</style>